package net.bplaced.streetfighter.lib.utils;

/**
 * This class represents the server response containing the HTTP status, the content and the error message if there is
 * one.
 * 
 * @author Sebastian Hoffmann <bo.hoffi@googlemail.com>
 */
public class ServiceReturnPackage<T> {

    /**
     * See <http://developer.android.com/reference/org/apache/http/HttpStatus.html>
     */
    private int status;

    private T content;

    private String errorMessage;

    public ServiceReturnPackage() {

    }

    /**
     * @return the content
     */
    public T getContent() {

        return this.content;
    }

    /**
     * @return the errorMessage
     */
    public String getErrorMessage() {

        return this.errorMessage;
    }

    /**
     * @return the status
     */
    public int getStatus() {

        return this.status;
    }

    public void setContent(final T content) {

        this.content = content;
    }

    /**
     * @param errorMessage
     *            the errorMessage to set
     */
    public void setErrorMessage(String errorMessage) {

        this.errorMessage = errorMessage;
    }

    public void setStatus(final int status) {

        this.status = status;
    }
}